package com.ztorn.fiscale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztorn.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报关单订单关联对象 fiscale_customs_declaration_order
 *
 * @author ztorn
 * @date 2025-01-19
 */
public class FiscaleCustomsDeclarationOrder
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 报关单ID */
    @Excel(name = "报关单ID")
    private Long declarationId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 订单重量(KG) */
    @Excel(name = "订单重量", suffix = "KG")
    private BigDecimal orderWeight;

    /** 订单件数 */
    @Excel(name = "订单件数")
    private Long orderPackages;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeclarationId(Long declarationId)
    {
        this.declarationId = declarationId;
    }

    public Long getDeclarationId()
    {
        return declarationId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setOrderAmount(BigDecimal orderAmount)
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount()
    {
        return orderAmount;
    }
    public void setOrderWeight(BigDecimal orderWeight)
    {
        this.orderWeight = orderWeight;
    }

    public BigDecimal getOrderWeight()
    {
        return orderWeight;
    }
    public void setOrderPackages(Long orderPackages)
    {
        this.orderPackages = orderPackages;
    }

    public Long getOrderPackages()
    {
        return orderPackages;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("declarationId", getDeclarationId())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("orderAmount", getOrderAmount())
            .append("orderWeight", getOrderWeight())
            .append("orderPackages", getOrderPackages())
            .append("createTime", getCreateTime())
            .toString();
    }
}
